package com.wb.core08_常用类.日期;

import java.util.Date;

/**
 * @author 黄衡熙
 * @version 1.0
 */
public class Test01_定义 {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);
        Date date2 = new Date(1);
        System.out.println(date2);
        // 获取当前距离纪元时间的毫秒数
        long current = System.currentTimeMillis();
        Date date3 = new Date(current);
        System.out.println(date3);
        Date date4 = new Date(2025 - 1900, 7 - 1, 28);
        System.out.println(date4);
    }

}
